import service from '@/utils/request'
// @Tags SpiKes
// @Summary 创建spiKes表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpiKes true "创建spiKes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /spiKes/createSpiKes [post]
export const createSpiKes = (data) => {
  return service({
    url: '/spiKes/createSpiKes',
    method: 'post',
    data
  })
}

// @Tags SpiKes
// @Summary 删除spiKes表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpiKes true "删除spiKes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /spiKes/deleteSpiKes [delete]
export const deleteSpiKes = (params) => {
  return service({
    url: '/spiKes/deleteSpiKes',
    method: 'delete',
    params
  })
}

// @Tags SpiKes
// @Summary 批量删除spiKes表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除spiKes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /spiKes/deleteSpiKes [delete]
export const deleteSpiKesByIds = (params) => {
  return service({
    url: '/spiKes/deleteSpiKesByIds',
    method: 'delete',
    params
  })
}

// @Tags SpiKes
// @Summary 更新spiKes表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpiKes true "更新spiKes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /spiKes/updateSpiKes [put]
export const updateSpiKes = (data) => {
  return service({
    url: '/spiKes/updateSpiKes',
    method: 'put',
    data
  })
}

// @Tags SpiKes
// @Summary 用id查询spiKes表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SpiKes true "用id查询spiKes表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /spiKes/findSpiKes [get]
export const findSpiKes = (params) => {
  return service({
    url: '/spiKes/findSpiKes',
    method: 'get',
    params
  })
}

// @Tags SpiKes
// @Summary 分页获取spiKes表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取spiKes表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /spiKes/getSpiKesList [get]
export const getSpiKesList = (params) => {
  return service({
    url: '/spiKes/getSpiKesList',
    method: 'get',
    params
  })
}

// @Tags SpiKes
// @Summary 不需要鉴权的spiKes表接口
// @accept application/json
// @Produce application/json
// @Param data query spikesReq.SpiKesSearch true "分页获取spiKes表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /spiKes/getSpiKesPublic [get]
export const getSpiKesPublic = () => {
  return service({
    url: '/spiKes/getSpiKesPublic',
    method: 'get',
  })
}
